import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Window 2.14
import QtQuick.Layouts 1.12
Window {
    id: subwin
    title:"媒体信息"
    width:400
    height: 300
    visible: true

    property var vcodec_name: ""
    property var resolution: ""
    property var frame_rate: ""
    property var pix_format: ""
    property var v_bit_rate: ""
    property var sample_rate:""

    property var acodec_name:""
    property var channel:""
    property var a_bit_rate:""
    property var sample_bits:""

    Rectangle{
        id:inforect
        x:parent.x+25
        width:parent.width-50
        height: parent.height-20
        border.color: "#2f2f2f"

        Column{

            //anchors.left: parent.left
            spacing: 5
            x:parent.x
            y:parent.y+10

            Label{
                width: 40
                text: "视频:"
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: vcodec_name
                font.family: "微软雅黑"
            }


            Label{
                width: 40
                text: resolution
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: frame_rate
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: v_bit_rate
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: pix_format
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: "音频:"
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: acodec_name
                font.family: "微软雅黑"
                //font.weight: font.bold
                font.pixelSize: 12
            }

            Label{
                width: 40
                text: sample_rate
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: channel
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: a_bit_rate
                font.family: "微软雅黑"
            }

            Label{
                width: 40
                text: sample_bits
                font.family: "微软雅黑"
            }
        }
    }
}
